<!DOCTYPE html>
<html>
<head>
   <meta charset="utf-8"> 
   <title>在线尝试 Bootstrap 实例</title>
   <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">  
   <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
   <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>

      <div id="content">
            <h4>基本表格</h4>
            <form role="form">
                  <div class="form-group">
                        <label class="sr-only" for="name">隐藏</label>
                        <label for="name">名称</label>
                        <input type="text" class="form-control" id="name" placeholder="请输入名称">
                  </div>
                  <button type="submit" class="btn btn-default">提交</button>
            </form>

            <h4>水平表格</h4>
            <form class="form-inline" role="form">
                  <div class="form-group">
                        <label for="name">名称</label>
                        <input type="text" class="form-control" id="name" placeholder="请输入名称">
                  </div>
                  <div class="checkbox">
                        <label><input type="checkbox">请打勾</label>
                  </div>
                  <button type="submit" class="btn btn-default">提交</button>
            </form>

            <h4>垂直表格</h4>
            <form class="form-horizontal" role="form">
                  <div class="form-group">
                        <div class="row">
                              <label for="firstname" class="col-sm-2 control-label">名字</label>
                              <div class="col-sm-10 "><input type="text" class="form-control" id="firstname" placeholder="请输入名字"></div>
                        </div>
                  </div>
                  <button type="submit" class="btn btn-default">提交</button>
            </form>
      </div>

</body>
</html>